import React from 'react';
import {
  View,
  Text,
  TouchableOpacity,
  TouchableHighlight,
} from 'react-native';

import TImage from '../../components/TImage';
import SizeUtils from '../../common/SizeUtils';
import Constants from '../../common/Constants';
import Config from '../../config';
import CommonListPage from '../common/CommonListPage';
import QZ_ChatMemberItemView from './QZ_ChatMemberItemView';
import QuanziRequestQunMemberListAtion from '../../actions/quanzi/QuanziRequestQunMemberListAtion';
export default class QZ_QunliaoMemberListPage extends CommonListPage {
  constructor(props) {
    super(props);
     this.state.chatgroupData = this.props.pageData.routeData;

     this._dataKey = "board_id";
  }

  _dealEnterPage() {
    if(this.state.chatgroupData != this.props.pageData.routeData){
      this.state.chatgroupData = this.props.pageData.routeData;
      this._listView.doRefresh();
    }
  }

  _onRenderItem(data, index) {
    return (<QZ_ChatMemberItemView data={data} />);
  }
  _onPressItem(data) {
  }


  _requestData(page,listView) {
     new QuanziRequestQunMemberListAtion().call(listView, {page:page,board_id:this.state.chatgroupData.board_id,
      chatgroup_id:this.state.chatgroupData.chatgroup_id})

  }

}
